package com.quanyan.ic.vendingMachine.dao;

import com.quanyan.ic.common.paging.Limit;
import com.quanyan.ic.vendingMachine.model.VmPlaceMapping;
import com.quanyan.ic.vendingMachine.model.VmPoster;
import com.quanyan.ic.vendingMachine.model.VmUserPwd;

import java.util.List;

/**
 * Created by zhuo.shi on 2017/8/1.
 */
public interface VmPlaceMappingDAO {

    void insert(VmPlaceMapping mapping);

    VmPlaceMapping findByVmNumber(String vmNumber);

    long countPlaceVmSize(Integer placeId);

    List<VmPlaceMapping> queryPlaceVmMapping(Integer cityId, Integer placeId, Limit limit);

    long countPlaceVmMapping(Integer cityId, Integer placeId);

    void deletePlaceVmMapping(Integer id);

    void disablePlaceVmMapping(Integer id);

    void updatePlaceVmMappingExt(Integer placeId, List<VmPoster> poster, List<VmUserPwd> userPwds);

    List<VmPoster> findVmPoster(Integer placeId);

    List<VmUserPwd> findVmUserPwd(Integer placeId);

    void deleteVmPoster(Integer id);

    void deleteVmUserPwd(Integer id);
}
